package cn.edu.scau.cmi.ZengLinghong.chapter02;

import java.util.Scanner;

public class InputData {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int amount=0;
		float price=0,sum=0;
		System.out.println("输入产品数量：");
		amount=reader.nextInt();
		System.out.println("输入产品单价：");
		price=reader.nextFloat();
		sum=price*amount;
		System.out.printf("数量：%d,单价：%5.2f,总价值：%5.2f",amount,price,sum);
	}

}
